package com.ruoyi.base.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.base.mapper.BasePositionMapper;
import com.ruoyi.base.domain.BasePosition;
import com.ruoyi.base.service.IBasePositionService;

/**
 * 岗位Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-22
 */
@Service
public class BasePositionServiceImpl implements IBasePositionService 
{
    @Autowired
    private BasePositionMapper basePositionMapper;

    /**
     * 查询岗位
     * 
     * @param ID 岗位主键
     * @return 岗位
     */
    @Override
    public BasePosition selectBasePositionByID(String ID)
    {
        return basePositionMapper.selectBasePositionByID(ID);
    }

    /**
     * 查询岗位列表
     * 
     * @param basePosition 岗位
     * @return 岗位
     */
    @Override
    public List<BasePosition> selectBasePositionList(BasePosition basePosition)
    {
        return basePositionMapper.selectBasePositionList(basePosition);
    }

    /**
     * 新增岗位
     * 
     * @param basePosition 岗位
     * @return 结果
     */
    @Override
    public int insertBasePosition(BasePosition basePosition)
    {
        return basePositionMapper.insertBasePosition(basePosition);
    }

    /**
     * 修改岗位
     * 
     * @param basePosition 岗位
     * @return 结果
     */
    @Override
    public int updateBasePosition(BasePosition basePosition)
    {
        return basePositionMapper.updateBasePosition(basePosition);
    }

    /**
     * 批量删除岗位
     * 
     * @param IDs 需要删除的岗位主键
     * @return 结果
     */
    @Override
    public int deleteBasePositionByIDs(String[] IDs)
    {
        return basePositionMapper.deleteBasePositionByIDs(IDs);
    }

    /**
     * 删除岗位信息
     * 
     * @param ID 岗位主键
     * @return 结果
     */
    @Override
    public int deleteBasePositionByID(String ID)
    {
        return basePositionMapper.deleteBasePositionByID(ID);
    }
}
